template<typename T>
class container
{
  T* items;
  size_t size_items;
  
  public:
    ...
	
  size_t size(){return size_items;}
	
    ...

};